package com.iplatform.iplatformuser.privilege.service.inter;

import com.iplatform.module.privilege.DwTargetBean;

import java.util.List;
import java.util.Map;


/**
* Title: ITargetService
* Description:
* @author RayLLi
* @date 2018年8月31日
 */
public interface ITargetService {

	/**
	 * Title: query
	 * Description:
	 * @param formMap
	 * @return
	 */
	public List<DwTargetBean> query(Map<String, String> formMap);

	/**
	 * Title: queryRoleTargets
	 * Description:
	 * @param formMap
	 * @return
	 */
	public List<DwTargetBean> queryRoleTargets(Map<String, String> formMap);

	/**
	 * Title: insert
	 * Description:
	 * @param dwTargetBean
	 * @return
	 */
	public int insert(DwTargetBean dwTargetBean);

	/**
	 * Title: update
	 * Description:
	 * @param dwTargetBean
	 * @return
	 */
	public int update(DwTargetBean dwTargetBean);

	/**
	 * Title: delete
	 * Description:
	 * @param deleteId
	 * @return
	 */
	public int delete(String deleteId);

	/**
	 * Title: batchDelete
	 * Description:
	 * @param deleteIds
	 */
	public void batchDelete(String[] deleteIds);

	/**
	 * Title: selectTargets
	 * Description:
	 * @param selectTargetId
	 * @param menuId
	 * @param createdBy
	 */
	public void selectTargets(String[] selectTargetId, String menuId, String createdBy);

	/**
	 * Title: selectTarget
	 * Description:
	 * @param targetId
	 * @param menuId
	 * @param createdBy
	 */
	public void selectTarget(String targetId, String menuId, String createdBy);

	/**
	 * Title: queryMenuIdByMenuLink
	 * Description:
	 * @param menuLink
	 * @return
	 */
	public String queryMenuIdByMenuLink(String menuLink);

	/**
	 * 查询指标类型下拉列表
	 * @return
	 */
	public List<Map<String,String>> selectTargetType();

	/**
	 * 根据menuId查询指标
	 * @param menuId
	 * @return
	 */
	public List<DwTargetBean> querySelectedTargetByMenuId(Map<String, String> formMap);

	/**
	 * 根据menuId查询未绑定的指标
	 * @param menuId
	 * @return
	 */
	public List<DwTargetBean> queryNotSelectedTargetByMenuId(Map<String, String> formMap);

	/**
	 * insertTargetMenu
	 * @param list
	 */
	public void insertTargetMenu(Map<String, String> formMap);

}
